import java.util.Scanner;


//二进制字符串相加并输出对应结果的二进制
public class Test3 {


    //法1：
    public static void main1(String[] args) {
        Scanner cin=new Scanner(System.in);


        String str1=cin.nextLine();
        String str2=cin.nextLine();

        StringBuilder stra=new StringBuilder(str1).reverse();
        StringBuilder strb=new StringBuilder(str2).reverse();

        StringBuilder ret=new StringBuilder();


        //
        int max=Math.max(stra.length(),strb.length());
        //
        Boolean isCarry=false;

        //
        for(int i=0;i<max;i++){
            char cha=i<stra.length()?stra.charAt(i):'0';
            char chb=i<strb.length()?strb.charAt(i):'0';


            if(cha=='1'&&chb=='1'){
                if(isCarry){
                    ret.append('1');
                }
                else{
                    ret.append('0');
                }
                isCarry=true;
            }
            else if(cha=='0'&&chb=='0'){
                if(isCarry){
                    ret.append('1');
                }
                else{
                    ret.append('0');
                }
                isCarry=false;
            }
            else{
                if(isCarry){
                    ret.append('0');
                }
                else{
                    ret.append('1');
                }

            }
        }
        if(isCarry){
            ret.append('1');
        }

        System.out.println(ret.reverse());
    }

    //法2：
    public static void main(String[] args) {
        Scanner cin=new Scanner(System.in);


        String str1=cin.nextLine();
        String str2=cin.nextLine();

        int a=getint(str1);
        int b=getint(str2);

        int sum=a+b;

        String ret=Integer.toBinaryString(sum);
        System.out.println(ret);

    }

    public static int getint(String s){
        int sum=0;
        for(int i=0;i<s.length();i++){
            int t=Integer.parseInt(s.charAt(i)+"");
            sum+=t*(Math.pow(2,s.length()-1-i));
        }
        return sum;
    }
}
